<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>命名空间</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
    </style>
</head>
<body>
	<div class="container">
		<h1>命名空间</h1>
	</div>
	<script src="https://cdn.staticfile.org/jquery/3.2.0/jquery.js"></script>
	<script type="text/javascript">
	
	var zns={};
	zns.common={};
	zns.fx={};
	// zns.fx.getUser 
	zns.site={};
	// zns.site.getUser 
	

	zns.common.getUser=function ()
	{
		alert('a');
	};

	zns.fx.getUser=function ()
	{
		alert('b');
	};

	zns.site.getUser=function ()
	{
		alert('c');
	};

	zns.common.getUser();
	zns.fx.getUser();
	zns.site.getUser();
	</script>
</body>
</html>